﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ImageRecognition2.CustomControls
{
    /// <summary>
    /// 
    /// </summary>
    public class DoubleBufferPanel : Panel
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DoubleBufferPanel"/> class.
        /// </summary>
        public DoubleBufferPanel()
        {
            // Set the value of the double-buffering style bits to true.
            this.SetStyle(ControlStyles.DoubleBuffer |
            ControlStyles.UserPaint |
            ControlStyles.AllPaintingInWmPaint,
            true);

            this.UpdateStyles();
        }
    }
}
